﻿using System;
using System.Collections.Generic;
using System.Text;
using RealState.DAL;
using RealState.BusinessObjects;

namespace RealState.BLL
{
   public class VwContentsBLL
    {
        private VwContentDAO _VwContentDAO;

		public VwContentDAO VwContentDAO
		{
			get { return _VwContentDAO; }
			set { _VwContentDAO = value; }
		}

        public VwContentsBLL()
		{
			VwContentDAO = new VwContentDAO();
		}
        public List<VwContents> GetViewContents()
        {
            try
            {
                return VwContentDAO.GetViewContent();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        public List<VwContents> GetViewContents(VwContents vcontent)
        {
            try
            {
                return VwContentDAO.GetViewContent(vcontent);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
